#ifndef _APPVIEWIMPL_H_
#define _APPVIEWIMPL_H_

#include <dlcom/cominc.h>


//{a7957a54-37cb-42a4-9ee8-599168c2a3d1}
_DEFINE_GUID_IMPL(CLSID_AppView,
	0xA7957A54, 0x37CB, 0x42A4, 0x9E, 0xE8, 0x59, 0x91, 0x68, 0xC2, 0xA3, 0xD1)

class CAppViewImpl :	public IPlugin,
						public IPluginRun,
						public CUnknownImp
{
public:
    CAppViewImpl(void);
    virtual ~CAppViewImpl(void);
public:

    BEGIN_STDCOM_MAP
        STDCOM_INTERFACE_ENTRY_UNKNOWN_(IPlugin)
        STDCOM_INTERFACE_ENTRY(IPlugin)
        STDCOM_INTERFACE_ENTRY(IPluginRun)
    END_STDCOM_MAP
    
	std_method(Init)(int Argc, basic_tchar* Argv[], IBase* pRot, IBase* pBase);
	std_method(Uninit)();
	std_method(Start)(_pinstance hInstance, UINT uType);
	std_method(Stop)(UINT uExitCode);

private:
	_lComPtr<IComRotMessage>			m_pRot;
	
};
#endif 
